home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-01 | 2.6 KB | 65 lines | [TEXT/ttxt] |
- PAUTEX jf
- 14, av Milton NANCY
- tel 83.40.36.80 ------------------------------------- Club dev. de NANCY 1993
-
- Extension Applescript ShareWare of $10 : Read/write resource 1.0
-
- This extension of Applescript for read and write some resource in a file into a
- applescript data. All transfert are possibles, reading or writing resources.
- This way is more powerfull than ResEdit for automatic transfert of resource
-
-
- ------------------ f is a file alias of a file -----------------------------
- read resName of file "xxxx" type "TYPE" -read all name of resource of type "TYPE"
- read resID of f type "CODE" -read all ID of some resource
- read resType of file "fichier" -read all type in a file
- read resource of f type "TEXT" id XX -read content of a resource
- read creator of f - read creator of a file
- read fileType of f - read file type
-
- Write some resource in a file :
- write resource data in f type "TYPE" id ref - write data in a resource
- write info of f creator "abcd" type "fghi"
-
- If the file does not exist create a file for ResEdit by default specificator.
- write resource data in file "newfile" type "TYPE" id ref filetype "file" creator "xxxx"
-
- exemple :
- set fiche to find document name "SoundEdit™ Pro"
- read resource of fiche type "TEXT" id (read resID of fiche type "TEXT")
- write resource "Hello word" in file "LCII:fichier" type "TEXT" id 1
-
- To get all resources of Teachtext :
- set x to find document name "TeachText" of type "APPL" in disk "LCII"
- read resType of x
-
- Give the list :
- {"hdlg", "hmnu", "vers", "SIZE", "ics4", "ics8", "icl4", "icl8", "ics#", "ICN#", "FREF", "BNDL", "ttxt", "PAT#", "WIND", "ALRT", "cicn", "ICON", "DITL", "DLOG", "dctb", "STR#", "MENU", "CODE"}
-
- Read version of teachText
- set x to find document name "TeachText" of type "APPL" in disk "LCII"
- read resource of x type "vers" id 1
-
- Give :
- " Ä F2-7.0(F2-7.0, © Apple Computer, Inc. 1985-1991"
-
-
- Copy a teachText file into a resource of type TEXT id = 1 :
- set texte to read data of (find document name "nom texte")
- write resource texte in "disque:fichier" type "TEXT" id 1
- -----------------------------------------------------------------------------
- Good luck jf
-
- Other OSAX by Pautex jf
- - save/read data Read or write data of a file
- - find document Quick search of document by name, type, date...
- - play sound Play a sound of a file
-
- Please support ShareWare of $10 thanks.
- Contact PAUTEX jf
- 14, av Milton 54000 nancy
- >>>>>>>> e-mail pautex@lpmi.u-nancy.fr <<<<<<<<<
-
-
- ...
-